﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SelectProductBatchAdd.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Basics.ProductSKU.SelectProductBatchAdd" %>

<%@ Import Namespace="ZLCMS.Business.Util" %>
<%=_framePage.GetPagerFormHtml(Request.RawUrl)%>



<form id="pageForm" method="post" class="pageForm" runat="Server" onsubmit="return dwzSearch(this, 'dialog');"
action="/SystemManage/Basics/ProductSKU/SelectProductBatchAdd.aspx">
<div class="pageHeader">
	<div class="searchBar">

         <ul class="searchContent">
            <li><span>商品名称&nbsp;</span>
                <asp:textbox id="name" runat="server" cond="name" ctltype="textbox"></asp:textbox>
                &nbsp;&nbsp; </li>
            <li><span>商品代码&nbsp;</span>
                <asp:textbox id="productno" runat="server" cond="productno" ctltype="textbox"></asp:textbox>
                &nbsp;&nbsp; </li>
           
        </ul>
	    <div class="subBar">
			<ul>
		<%--	<li>
			    <a class="button" href="<%= Request.Path %>" onclick="ZLAN_DWZ_EX.query(this);" 
			    target="navTab" rel="<%= _framePage.NavTabId %>" title="<%= _framePage.NavTabTitle %>"><span>&nbsp;查&nbsp;询&nbsp;</span></a>
			</li>--%>
            
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">&nbsp;查&nbsp;询&nbsp;</button></div></div></li>
			
			</ul>
	    </div>
	</div>
</div>
</form>

<div class="pageContent">   
   	<div class="panelBar">
		
	</div>
	<div class="tableList"   layoutH="116">
    
    <div class="tableList" layouth="115">
        <table class="list" targettype="navTab" asc="asc" desc="desc">
            <thead>
                <tr>
                    <th width="80px">
                        缩略图
                    </th>
                    <th width="120px">
                        商品编码
                    </th>
                    <th width="140px">
                        商品名称
                    </th>                
                    <th width="100px">
                        售卖价
                    </th>
                    <th width="120px" align=center>
                        操作
                    </th>
                </tr>
            </thead>
            <tbody>
                <asp:repeater runat="server" id="grid">
                <ItemTemplate>
			    <tr target="uid">
				    <td height="80px"><img src="<%# GetPicture( FileKit.FirstFilePath(Eval("ThumbnailImg").ToString())) %>" alt="" width="80px" /></td>
				    <td><%# Eval("ProductNo")%></td>
				    <td><%# Eval("ProductName")%></td>
				    <td><%# Eval("SalePrice", "{0:0.00}") %></td>
				    <td  align="center"> 
				        <a href="#"  onclick="setDialogResult('<%# GetPicture( FileKit.FirstFilePath(Eval("ThumbnailImg").ToString())) %>','<%# Eval("ProductNo")%>','<%# Eval("ProductName")%>','<%# Eval("MarketPrice")%>','<%# Eval("SalePrice")%>');">添加</a>&nbsp;&nbsp;
                       
				    </td>
			    </tr>
                </ItemTemplate>
            </asp:repeater>
            </tbody>
        </table>
    </div>

	</div>
	
<script type="text/javascript">
    function setDialogResult(imgsrc, no, name, mp, sp) {
        dialogResult = {};
        dialogResult.ThumbnailImg = imgsrc;
        dialogResult.ProductNo = no;
        dialogResult.MarketPrice = mp;
        dialogResult.SalePrice = sp;
        dialogResult.ProductName = name;
        $.pdialog.closeCurrent();
    }

</script>
   
<%= _framePage.GetPagerContentHtml("dialog")%>
</div>